<!--发货单-->
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">搭配师创建订单</h1>
</div>
<div class="wrapper-md" ng-controller="CreateOrderStylistController">
    <form name="form" class="form-validation">
        <div class="panel panel-default">
            <div class="panel-heading">
                <span class="h4">用户订单商品列表</span>
            </div>
            <div class="panel-body" ng-repeat="goods in userOrder.goods">
                <div class="row">
                    <div class="col-sm-1">
                        <div class="form-group">
                            <div class="col-sm-10">
                                <input type="checkbox" ng-model="checkFlag" data-type="purchase" data-status="0" ng-click="selectGoods(this)">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">名称：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.goodsName}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">颜色：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.color}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">尺寸：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.size}}</label>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-1">
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">收货人姓名：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.consigneeName}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">收货人电话：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.consigneeTel}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">下单时间：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.createTime}}</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-1">
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">收货人地址：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.consigneeAddress}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">收货人邮编：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.consigneePostcode}}</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-1">
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">总数量：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.count}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">发货数量：</label>
                            <div class="col-sm-6">
                                <label class="control-label">{{goods.deliveredCount}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">可发货数量：</label>
                            <div class="col-sm-6">
                                <input type="number" class="form-control" ng-model="goods.orderDeliveredCount" min="1" max="{{goods.count-goods.deliveredCount}}"  name="deliveryNumber" value="{{goods.orderDeliveredCount}}">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                <span class="h4">发货单详情</span>
            </div>
            <input type="hidden" name="consigneeId" ng-model="invoice.consigneeId">
            <div class="panel-body">
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">收货人姓名</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="consigneeName" ng-model="invoice.consigneeName">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">收货人电话</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control"  name="consigneeTel" ng-model="invoice.consigneeTel">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">收货人地址</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control"  name="consigneeAddress" ng-model="invoice.consigneeAddress">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">收货人邮编</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control"  name="consigneePostcode" ng-model="invoice.consigneePostcode">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">配送方式</label>
                            <div class="col-sm-9">
                                <select class="form-control" ng-model="invoice.deliveryWay">
                                    <option value="">请选择...</option>
                                    <option value="0">EMS</option>
                                    <option value="1">顺丰快递</option>
                                    <option value="2">圆通快递</option>
                                    <option value="3">申通快递</option>
                                    <option value="4">汇通快递</option>
                                </select>
                                <!--<input type="text" class="form-control"  name="deliveryMethod" ng-model="invoice.deliveryMethod">-->
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">配送时间</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control datetimepicker_"  name="deliveryTime" ng-model="invoice.deliveryTime">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">快递单号</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control"  name="expressCode" ng-model="invoice.expressCode">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">订单状态</label>
                            <div class="col-sm-9">
                                <select class="form-control" ng-model="invoice.status">
                                    <option value="">请选择...</option>
                                    <option value="0">未发货</option>
                                    <option value="1">已发货</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">发货人姓名</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control"  name="consignerName" ng-model="invoice.consignerName">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">发货人电话</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control"  name="consignerTelphone" ng-model="invoice.consignerTelphone">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <footer class="panel-footer text-right bg-light lter">
            <button type="button" class="btn btn-success" ng-click="createInvoice()">创建发货单</button>
            <button type="button" class="btn btn-error" ng-click="backToOrderList()">返回</button>
        </footer>
    </form>
</div>
</body>
</html>